package schedule.imp;

import schedule.PaymentSchedule;

import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;

public class WeeklySchedule implements PaymentSchedule {
    @Override
    public boolean isPayDate(Date payDate) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(payDate);
//        6 代表星期五
        return calendar.get(Calendar.DAY_OF_WEEK) == 6;
    }
}
